package com.tju.ocean_ecology_website.service;

import com.tju.ocean_ecology_website.entity.VolunteerTeamMember;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 志愿者队伍成员表(VolunteerTeamMember)表服务接口
 */
public interface VolunteerTeamMemberService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    VolunteerTeamMember queryById(Long id);

    /**
     * 分页查询
     *
     * @param volunteerTeamMember 筛选条件
     * @param pageRequest         分页对象
     * @return 查询结果
     */
    Page<VolunteerTeamMember> queryByPage(VolunteerTeamMember volunteerTeamMember, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param volunteerTeamMember 实例对象
     * @return 实例对象
     */
    VolunteerTeamMember insert(VolunteerTeamMember volunteerTeamMember);

    /**
     * 修改数据
     *
     * @param volunteerTeamMember 实例对象
     * @return 实例对象
     */
    VolunteerTeamMember update(VolunteerTeamMember volunteerTeamMember);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    /**
     * 查询所有数据
     *
     * @param volunteerTeamMember 筛选条件
     * @return 对象列表
     */
    List<VolunteerTeamMember> queryAll(VolunteerTeamMember volunteerTeamMember);
}
